package com.zhxy.manager.dao;

import com.zhxy.manager.dto.EquipmentRepairDto;
import com.zhxy.manager.entity.Equipment;
import com.zhxy.manager.entity.EquipmentRepair;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EquipmentRepairDao {
    //增加
    int add(EquipmentRepair equipmentRepair);
    //查询全部
    List<EquipmentRepair> selectAll();
    //删除
    int del(int id);
    //修改
    int update(EquipmentRepair equipmentRepair);
    //查询，带条件 动态sql
    List<EquipmentRepair> selectWhere(@Param("name") String name);
    //批量删除
    int delBatch(int[] ids);
    //查询搜索条件 详细信息 多表关系
    List<EquipmentRepairDto> selectDetail(@Param("name") String name);

}
